//主数据表格配置
export const columns = [
  // { title: '所属单位', dataIndex: 'orgPid', key: 'orgPid', align: 'center' },
  // { title: '所属部门', dataIndex: 'departPid', key: 'departPid', align: 'center' },
  { title: '收货地址', dataIndex: 'addr', key: 'addr', align: 'center' },
  // { title: '收货地址经度', dataIndex: 'lng', key: 'lng', align: 'center' },
  // { title: '收货地址纬度', dataIndex: 'lat', key: 'lat', align: 'center' },
  { title: '联系人', dataIndex: 'contact', key: 'contact', align: 'center' },
  { title: '联系电话', dataIndex: 'contactTel', key: 'contactTel', align: 'center' },
  { title: '标签', dataIndex: 'tag', key: 'tag', align: 'center' },
  {
    title: '操作',
    dataIndex: 'action',
    key: 'operation',
    width: 180,
    align: 'center',
    scopedSlots: { customRender: 'action' }
  }
]
//主数据查询配置
export const q_formInfos = [
  { label: '联系人', name: 'contact', type: 'input', placeholder: '联系人' },
  { label: ['查询', '重置'], type: 'botton' }
]

export const q_formDatas = {
  contact: null
}
//添加主数据表单配置
export const s_FormInfo = [
  // { label: '所属单位', name: 'orgPid', type: 'input', placeholder: '请输入所属单位' },
  // { label: '所属部门', name: 'departPid', type: 'input', placeholder: '请输入所属部门' },
  { label: '收货地址', name: 'addr', type: 'input', placeholder: '请输入收货地址' },
  // { label: '收货地址经度', name: 'lng', type: 'input', placeholder: '请输入收货地址经度' },
  // { label: '收货地址纬度', name: 'lat', type: 'input', placeholder: '请输入收货地址纬度' },
  { label: '联系人', name: 'contact', type: 'input', placeholder: '请输入联系人' },
  { label: '联系电话', name: 'contactTel', type: 'input', placeholder: '请输入联系电话' },
  { label: '标签', name: 'tag', type: 'input', placeholder: '请输入标签' },
  // { label: '收货地址', name: 'addr', type: 'deliveryAddressSelect', placeholder: '请选择收货地址' },
  { label: ['保存', '重置'], type: 'botton' }
]
export const s_formDatas = {
  sysSeq: 0,
  pid: '',
  orgPid: null,
  departPid: null,
  addr: null,
  lng: null,
  lat: null,
  contact: null,
  contactTel: null,
  tag: null
}
export const s_rules = {
  addr: [{ required: true, message: '收货地址必填', trigger: 'blur' }],
  contact: [{ required: true, message: '联系人必填', trigger: 'blur' }],
  contactTel: [{ required: true, message: '联系电话必填', trigger: 'blur'}]
}

//查看明细显示配置
export const infoDatas=[
  { title: '收货地址', id: 'addr', value: '' },
  { title: '收货地址经度', id: 'lng', value: '' },
  { title: '收货地址纬度', id: 'lat', value: '' },
  { title: '联系人', id: 'contact', value: '' },
  { title: '联系电话', id: 'contactTel', value: '' },
  { title: '标签', id: 'tag', value: '' }
]
